<!DOCTYPE html>
<html>
  <head>
    <title>提现</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
      <link rel="stylesheet" href="${s.base}/mobile/css/weui.min.css">
      <link rel="stylesheet" href="${s.base}/mobile/css/jquery-weui.min.css">
      <link rel="stylesheet" href="${s.base}/mobile/css/base.css">
      <link rel="stylesheet" href="${s.base}/mobile/css/component.css?1232445">
      <style type="text/css">
          html,body{background: #ffffff;}
          .xyg-money {
              width: 96%;
              background: #ffffff;
              padding: 10px 2%;
              margin: 10px 0px;
          }
      </style>
  </head>
  <body style="background: #ffffff;">
  <div class="xyg-money" style="margin-top: 0px;">
      <div class="weui-cells__title margin-top-0" style="margin-top:0px; margin-bottom: 0px;height:1.2rem;line-height:1.2rem; color: #000000;">可提现金额:&nbsp;<span style="color: #000000;">${member.money}元</span></div>
  	<div class="weui-cells__title xyg-money-font4 margin-top-bottom-0 ">
  	<div class="weui-flex margin-top-bottom-0">
  			<div>
			  <div class="placeholder">
			  <span style=" color: #000000;">提现金额:&nbsp;&nbsp;</span>
			</div>
			</div>
			<div class="weui-flex__item">
			  <input style="border-bottom: 1px solid #000000; color: #000000; "  class="weui-input" id="money" type="number" placeholder="请输入提现金额">
			</div>
		  </div>
  		
  	</div>

  </div>
   <div class="xyg-content" style="width: 92%; margin: 0px 4%;">
		<a href="javascript:submit()" class="weui-btn weui-btn_default">立即提现</a>
  </div>
  <article class="weui-article" style="padding: 0px;">
      <section>
          <section>
              <p>
                  <img src="${s.base}/mobile/images/jf.png" alt="">
              </p>
          </section>
      </section>
  </article>
 
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/js/jquery-2.1.4.js"></script>
  <script src="${s.base}/mobile/js/jquery-weui.js"></script>
  <script src="${s.base}/mobile/js/swiper.js"></script>
  <script src="${s.base}/mobile/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/js/component.js"></script>
  <script src="${s.base}/mobile/js/base.js"></script>


  <!--js分享代码开始-->
  <input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
  <input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
  <input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
  <input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
  <input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
  <input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
  <input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
  <input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
  <script src="${s.base}/mobile/js/share.js"></script>

  <script>


      initXygDpi375();
      var memberId='${memberId}';
      function submit() {
          var money = $("#money").val();
          if (money == null || money == ""){
              $.toast("请输入提现金额！", "text");
              return false;
          }

          if (parseInt(money) < 10){
              $.toast("您输入的金额不能小于10元！", "text");
              return false;
          }
          var readyMoney = '${member.money}';
          if (parseFloat(money) > readyMoney){
              $.toast("您的金额不足！", "text");
              return false;
          }
          var param = {
              memberId: memberId,
              status: 1,
              money : money
          };
          $.showLoading("正在提交中");
          $.post("/phone/tianxianUpdate",param,function(result){
              if(0 == result.code){
                  $.hideLoading();
                  $.alert("您的提现申请已经成功，我们会尽快审核！", "提现提示", function() {
                      goMyPage(memberId);
                  });
              }else{
                  $.hideLoading();
                  $.toast(result.msg, "text");
              }
          },"json");
      }

  </script>
</html>

